package com.listener;

public class Door{
	private DoorListener listener;
	
	public Door(DoorListener listener) {
		this.listener = listener;
	}
	
	public void send() {
		for (int i = 0; i < 5; i++) {
			listener.onMessage("open the door");
		}
	}
}
